#ifndef FILEBROWSER_H
#define FILEBROWSER_H
/*---------------------------------------------------------------------------*/
#include <string>
#include <iostream>
#include "FileNode.h"
/*---------------------------------------------------------------------------*/
using namespace std;
/*---------------------------------------------------------------------------*/
class FileBrowser
{

	private:
	
	FileNode			*rootNode;
	FileNode			*currentNode;

		
	void 				getFileSize(FileNode *fn);
	
	public:
	FileBrowser(char *path);
	~FileBrowser();
	
	FileNode			*getCurrentNode();
	FileNode 			*getRootNode();
	
	
	void				fillNode(FileNode *fn, int level = 1, bool forced = false);
	void				fillCurrentNode(int level=1);
	
	
	FileNode			*addPath(char *path);
	void				goToPath(char *path);
	
	
};
/*---------------------------------------------------------------------------*/
#endif
